
#bigfunc ADD_4x7SEGDISP_DEVICE(NAME, INDEX, DATA_PINS, CONTROL_PINS)
	REGISTER_OUTPUT_PIN(NAME_control, 4, CONTROL_PINS)
	REGISTER_OUTPUT_PIN(NAME_data, 8, DATA_PINS)

	CREATE_REGISTER(INDEX, NAME_reg, 16, NAME)

	#ifdef __IN_VHDL 
		l_NAME: entity work.disp7seg(behaviour) 
			port map(
				clk => clk, 
				reset => reset,
				byte1 => NAME_reg(15 downto 8), 
				byte2 => NAME_reg(7 downto 0), 
				dots => "0000",
				control => NAME_control, 
				data => NAME_data
			);
	#endif 
#endbigfunc